<?php

namespace Index\ViewModel;

use Think\Model\ViewModel;

Class FeedbackreplyViewModel extends ViewModel {

    protected $connection = 'DB';   //连接数据库
    protected $viewFields = array(
	//反馈回复表
	'chat_feedback_re' => array('id', 'admin_id', 'fb_id', 'content', 'ctime', 'app_flag', '_type' => 'left'),
	//用户反馈表
	'chat_feedback' => array('user_uid', 'img' => 'fb_img', 'content' => 'fb_content', 'ctime' => 'fb_ctime', '_on' => 'chat_feedback_re.fb_id=chat_feedback.id', '_type' => 'left'),
	//管理员表
	'chat_admin' => array('role_id', 'username', 'name', 'phone', 'state', '_on' => 'chat_feedback_re.admin_id=chat_admin.id'));

}
